From 261f2fef57695fec154fcd0aae9c503d2329d73f Mon Sep 17 00:00:00 2001 From: "kaf24@labyrinth.cl.cam.ac.uk" Date: Mon, 10 Mar 2003 00:04:52 +0000 Subject: [PATCH] bitkeeper revision 1.117 (3e6bd6a4rGkhgVtHUdxAdVKFXliA9g) xen_block.c: Small fix. --- xen/drivers/block/xen_block.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/drivers/block/xen_block.c b/xen/drivers/block/xen_block.c index 4f30cdf801..43b85fe6d3 100644 --- a/xen/drivers/block/xen_block.c +++ b/xen/drivers/block/xen_block.c @@ -207,12 +207,12 @@ static void end_block_io_op(struct buffer_head *bh, int uptodate) pending_req->status = 1; } #ifdef TEST_READ_VALIDITY - else + else if ( pending_req->operation == READ ) { unsigned long *buff = map_domain_mem(virt_to_phys(bh->b_data)); if ( (buff[ 0] == 0xdeadbeef) && (buff[127] == 0xdeadbeef) ) - printk("A really fucked buffer at %ld\n", bh->b_rsector); + printk("An unmodified buffer at sector %ld\n", bh->b_rsector); unmap_domain_mem(buff); } #endif -- 2.30.2